<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>upload test</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">

</head>

<body>
	<form method="post" action="upload.action" enctype="multipart/form-data">
		<input type="text" name="name" /> 
		<input type="file" name="file" /> 
		<input type="submit" />
	</form>
	
	<form method="post" action="upload1.action" enctype="multipart/form-data">
		<table>
		<tr>
		<th colspan="2">上传文件</th>
		</tr>
		<tr>
		<td>
		文件一
		</td>
		<td>
		<input type="file" name="file1" /> 
		</td>
		</tr>
		<tr>
		<td>
		<input type="submit" value="上传文件" />
		<td>
		</tr>
		
		</table>
	</form>
	
	<form action="upload2.action" method="post" enctype="multipart/form-data">
	<table>
		<tr>
			<th colspan="2">多文件上传文件</th>
		</tr>
		<tr>
			<td>文件一</td>
			<td>
				<input type="file" name="file2"/>
			</td>
		</tr>
		<tr>
			<td>文件二</td>
			<td>
				<input type="file" name="file2"/>
			</td>
		</tr>
		<tr>
			<td colspan="2">
				<input type="submit" value="上传文件"/>
			</td>
		</tr>
	</table>
	</form>
</body>
</html>
